﻿using B.S.BasicData.Domain;
using Microsoft.EntityFrameworkCore;

namespace B.S.BasicData.Infrastcuture
{
    /// <summary>
    /// 注册上下文
    /// </summary>
    public class MyDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">上下文</param>
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserInfo> UserInfos { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roles { get; set; }

        /// <summary>
        /// 部门表
        /// </summary>
        public DbSet<Dept> Depts { get; set; }


        /// <summary>
        /// 日志表
        /// </summary>
        public DbSet<NlogInfo> NlogInfos { get; set; }

    }
}
